home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / modula2 / 174 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  2.5 KB

  1. Path: news.cc.ucf.edu!Pegasus!fwf27775
  2. From: fwf27775@pegasus.cc.ucf.edu (Fritz W Feuerbacher)
  3. Newsgroups: comp.lang.modula2
  4. Subject: Re: Do any employers use Modula-2?
  5. Date: 25 Jan 1996 16:56:14 GMT
  6. Organization: University of Central Florida
  7. Message-ID: <4e8cne$n4e@news.cc.ucf.edu>
  8. References: <carvaines.1-1801961238310001@slip7-4.acs.ohio-state.edu> <DLLI2I.Ivv@cix.compulink.co.uk>
  9. NNTP-Posting-Host: pegasus.cc.ucf.edu
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. David Collier (dcollier@cix.compulink.co.uk) wrote:
  13. : Think of computer languages like human languages. Every time you learn a 
  14. : new one, you learn a new way to say things, and a few new neat concepts, 
  15. : and ways to understand. But in the end, expressing the ideas in your head 
  16. : is  pretty similar in most of them. And it you are dumb and tongue-tied 
  17. : in one, you wont be better in another.
  18.  
  19. The reason that most high level imperative languages are the same is that
  20. they are based on the same idea of the Von Neauman Architecture. i.e. the
  21. concept of cpu, main memory, secondary storage, etc.  In other words you
  22. have a memory matrix in which to store variables and instructions and you
  23. need to fetch these things from memory to work on them, then when your done
  24. you store them back into main memory for use later.  Other languages that are
  25. declarative are totally different in the way they look at the architecture.
  26. Another paradigm is object oriented programming which takes into 
  27. consideration the data that is to be manipulated rather than the 
  28. procedures and functions that manipulate them.  In object oriented 
  29. languages we try to establish objects that work and return objects that 
  30. we can let other objects use.  The objects are the data types.  We don't 
  31. care how a data type handles the processing just as long as it does it.  
  32. This ensures that we can reuse the object in future programs.  AN example 
  33. would be an object called string.  We pass a string to it say: "Hello 
  34. World" and then pass a command like "printstr".  The string data type 
  35. itself says ok, someone gave me a string that is my type, and now they 
  36. are telling me to print this string, let me look and see if I have a way 
  37. to do that in my bag of tricks.  It looks and sure enough finds the 
  38. necessary code to do it.  This links the data types with the operations 
  39. that can be performed on them.  Hopefully by doing this, we can eliminate 
  40. the need to re-write code that does the same thing over and over.  But, who's
  41. to say that the original writer of the object and its methods did it the 
  42. correct way?
  43.  
  44.